#ifndef _SET_H_
#define _SET_H_

#include <stdio.h>
#define ElementType void*
//排序容器
struct Set;
typedef struct Set set;

//set初始化
set* InitSet(int (*Campare)(ElementType,ElementType),void (*Travel)(ElementType), int (*Find)(ElementType,ElementType));

//插入
void InsertSet(set *s, ElementType element);
//遍历打印
void TravelSet(set *s);
//按值查找
ElementType FindSet(set *s, ElementType element);
//按值删除
void RemoveSetByElement(set *s, ElementType element);
//得到set容量，即内部数据个数
int GetSize(set *s);

#endif